home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / tabdisplay.h < prev    next >
Encoding:
C/C++ Source or Header  |  2009-03-05  |  2.2 KB  |  81 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. #ifndef TABDISPLAY_H
  8. #define TABDISPLAY_H
  9.  
  10. #include <QList>
  11. #include "ui_tabdisplay.h"
  12. #include "scribusapi.h"
  13. #include "scribusstructs.h"
  14.  
  15. class ScribusDoc;
  16.  
  17. /*! \brief Display panel for preferences dialog.
  18. This class is inherited from UI base class.
  19. \author Petr Vanek <petr@scribus.info>
  20. */
  21. class SCRIBUS_API TabDisplay : public QWidget, public Ui::TabDisplay
  22. {
  23.     Q_OBJECT
  24.  
  25.     public:
  26.         TabDisplay(QWidget* parent = 0, const char* name = 0);
  27.         ~TabDisplay(){};
  28.         void restoreDefaults(struct ApplicationPrefs *prefsData, struct guidesPrefs &guidesSettings, QList<PageSet> &pageSets, int pageLayout, MarginStruct &scratch);
  29.         void unitChange(int docUnitIx);
  30.         //! \brief Hide non-needed widgets for ReformDoc widget
  31.         void setDocSetupMode();
  32.         void setPaperColor(QColor neu);
  33.         void setMarginColored(bool colored);
  34.  
  35.         double DisScale;
  36.         QColor colorPaper;
  37.         QColor colorFrame;
  38.         QColor colorFrameNorm;
  39.         QColor colorFrameGroup;
  40.         QColor colorFrameLocked;
  41.         QColor colorFrameLinked;
  42.         QColor colorFrameAnnotation;
  43.         QColor colorPageBorder;
  44.         QColor colorControlChars;
  45.  
  46.     private:
  47.         int docUnitIndex;
  48.  
  49.     private slots:
  50.         /*!
  51.         \author Franz Schmid
  52.         \brief Preferences (Display, Display Size). Draws ruler depending on scaling factor
  53.         */
  54.         void drawRuler();
  55.         /*!
  56.         \author Franz Schmid
  57.         \brief Sets Scale for ruler scale from the display value
  58.         */
  59.         void restoreDisScale();
  60.         /*!
  61.         \author Franz Schmid
  62.         \brief Preferences (Display, Display Size). Sets Scale for ruler scale
  63.         */
  64.         void setDisScale();
  65.         /*!
  66.         \author Franz Schmid
  67.         \brief Sets implicit paper color
  68.         */
  69.         virtual void changePaperColor();
  70.         virtual void changeFrameColor();
  71.         virtual void changeNormFrameColor();
  72.         virtual void changeGroupFrameColor();
  73.         virtual void changeChainFrameColor();
  74.         virtual void changeLockFrameColor();
  75.         virtual void changeAnnotFrameColor();
  76.         virtual void changePageBorderColor();
  77.         virtual void changeControlCharsColor();
  78. };
  79.  
  80. #endif
  81.